﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Commonality.DTO.AuthorityDTO
{
    public class RolesDTO
    {
        /// <summary>
        /// 角色ID
        /// </summary>
        public int RoleID { get; set; }
        /// <summary>
        /// 父级角色ID
        /// </summary>
        public int? Parent_id { get; set; }
        /// <summary>
        /// 账户
        /// </summary>
        [Required(ErrorMessage = "账户非空")]
        public string? Account { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [Required(ErrorMessage = "名称非空")]
        public string? RoleName { get; set; }
        /// <summary>
        /// 角色描述
        /// </summary>
        [Required(ErrorMessage = "角色描述非空")]
        public string? Description { get; set; }
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool? IsDelet { get; set; }
    }
}
